﻿using YFurion.Entities;
using YFurion.Session;
using YFurion.Session.Extensions;

namespace YFurion.EntityFrameworkCore.MultiTenants
{
    public static class YSessionExtensions
    {
        public static string GetTenantId(this IYSession ySession)
        {
            string tenantId = ySession.GetClaimValue(nameof(IHasTenant.TenantId));
            return tenantId;
        }
    }
}
